#include <stdlib.h>
#include <stdio.h>

int main(int argc, char **argv) {
    int input_num = atoi(argv[1]);
    switch (input_num) {
        case 1: {
            printf("num == 1!\n");
            break;
        }
        case 2: {
            printf("num == 2!\n");
            break;
        }
        case 3: {
            printf("num == 3!\n");
            break;
        }
            break;
        default:
            printf("num == %d!\n", input_num);

            break;
    }

    if (input_num == 0)
        return 1;
    else
        return 10;

    return 0;
}

/*
export PATH=/home/yhnkkio/Aworkspace/llvm-project-9.0.1/llvm/cmake-build-debug/bin:$PATH
clang test.cpp -emit-llvm -S -o test_origin.ll
clang test_origin.ll -o test_origin

clang -Xclang -load -Xclang /home/yhnkkio/Aworkspace/OllvmSrc/cmake-build-debug/ollvm/lib/Transforms/Obfuscation/LLVMObfuscation.so test.cpp -emit-llvm -S -o test_fla.ll
clang -Xclang -load -Xclang /home/yhnkkio/Aworkspace/OllvmSrc/cmake-build-debug/ollvm/lib/Transforms/Obfuscation/LLVMObfuscation.so -mllvm -fla test.cpp -emit-llvm -S -o test_fla.ll
 */